メインコンテンツへスキップ

All Posts

News bits

Redux Toolkit v2.10.0リリース

Redux Toolkit v2.10.0がリリースされた。Immer依存関係を10.2に更新し、パフォーマンス改善とcombineSlicesの型修正を含む。

Immer 10.2のパフォーマンス改善を取り込み。RTK 2.10.0ではsetUseStrictIteration(false)を呼び出し、標準的なRedux stateの使用では文字列キーのみを想定することで、Immer更新操作で約10%の高速化を実現。シンボルキーをRedux stateで使用している場合は、アプリコードでsetUseStrictIteration(true)を呼び出すことで以前の動作に戻せる。

追加のRTKパフォーマンス改善として、繰り返しのfilter().map().map()呼び出しをマイクロ最適化。RTKQ tag invalidationがproxyでラップされた配列から読み取っていたのを、プレーン配列から読み取るように変更。ESBuildでのインポート重複を解消し、外部インポートを1回のみ取り込むように内部構造を再構築。

バイト削減により、RTKQコアから約0.6K min、RTKQ Reactバンドルから約0.2K minを削減。

combineSlicesPreloadedStateが入力型と一致しない場合(永続化された値など)をより適切に処理するように修正。

出展:Redux Toolkit v2.10.0

Major updates of Redux libraries

2023 年 12 月 4 日に Redux 5.0、Redux Toolkit 2.0、React Redux 9.0、Reselect 5.0 など Redux 関連パッケージのメジャーリリースが行われました。

https://github.com/reduxjs/redux-toolkit/releases/tag/v2.0.0

全ての Redux ライブラリで、TypeScript へ書き換え、ESM/CJS に対応、ES2020 形式で出力されるようになりました。

著者について

Hi there. I'm hrdtbs, a frontend expert and technical consultant. I started my career in the creative industry over 13 years ago, learning on the job as a 3DCG modeler and game engineer in the indie scene.

In 2015 I began working as a freelance web designer and engineer. I handled everything from design and development to operation and advertising, delivering comprehensive solutions for various clients.

In 2016 I joined Wemotion as CTO, where I built the engineering team from the ground up and led the development of core web and mobile applications for three years.

In 2019 I joined matsuri technologies as a Frontend Expert, and in 2020 I also began serving as a technical manager supporting streamers and content creators.

I'm so grateful to be working in this field, doing something that brings me so much joy. Thanks for stopping by.